package helpers;

import java.math.BigDecimal;
import java.math.MathContext;
import java.math.RoundingMode;

public class MathUtils {

	public static BigDecimal roundUpTo2DecimalPlace(BigDecimal billingRate) {
		String[] p = billingRate.toPlainString().split("\\.");
		int precision = p[0].length() + 2;
		return billingRate.round(new MathContext(precision,
				RoundingMode.HALF_UP));
	}

}
